package com.cml.dm.admin.event;

import java.util.List;

public class BRNoticeEvent {

    private String orgId;

    private Status status;

    private BRNoticeEvent(){
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public static BRNoticeEvent begin(String orgId){
        BRNoticeEvent event = new BRNoticeEvent();
        event.setOrgId(orgId);
        event.setStatus(Status.BEGIN);
        return event;
    }

    public static BRNoticeEvent end(String orgId){
        BRNoticeEvent event = new BRNoticeEvent();
        event.setOrgId(orgId);
        event.setStatus(Status.END);
        return event;
    }

    public static enum Status{
        BEGIN,
        END
    }
}
